﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ARS.Common.Entitys
{
   public class EmailTemplate
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        public int Id { get; set; }
        public int MailSenderId { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// 发送者名称
        /// </summary>
        public string  SendName { get; set; }
        /// <summary>
        /// 接收者
        /// </summary>
        public string[] Recipients { get; set; }
        /// <summary>
        /// 抄送
        /// </summary>
        public string[] CC { get; set; }
        /// <summary>
        /// 密送
        /// </summary>
        public string[] BCC { get; set; }
        /// <summary>
        /// 主题
        /// </summary>
       public string Subject { get; set; }
        /// <summary>
        /// 发送内容
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 数据 附件类型 0：附件形式 1：内嵌形式
        /// </summary>
        public AttachmentType DataAttachmentType { get; set; }
        /// <summary>
        /// 是否附加签名
        /// </summary>
        public bool AttachmentSignature { get; set; }

        public bool MultipleSheet { get; set; }
        public string[] SheetNames { get; set; }

        /// <summary>
        /// 数据库实例
        /// </summary>
        public int ExecInstance { get; set; }
        /// <summary>
        /// 数据参数
        /// </summary>
        public string[] SqlParams { get; set; }
        /// <summary>
        /// 数据脚本
        /// </summary>
        public string SqlScript { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 数据更新表
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
